package com.pishou.code.bean;

import com.pishou.ParamConfig;
import com.pishou.URLConfig;

public class Video {
	
	private String path;
	
	private Integer id;
	private Integer resourcesId;
	private Integer groupId;
	private Integer number;
	
	// 视频信息
	private String name;
	private String oss;
	private String type;
	private boolean status;
	private Integer duration;

	// 跟随播放的屏幕信息
	private Integer commentId;
	private String content;
	private Integer pictures;
	private String commentVideoPath;
	private Long sku;
	private Integer rotation;
	
	public Video() {
		super();
	}
	public Video(String name, String path, String oss, Integer commentId, String content, Integer pictures, Long sku,Integer rotation) {
		super();
		this.name = name;
		this.path = path;
		this.oss = URLConfig.oss_host + oss;
		this.commentId = commentId;
		this.content = content;
		this.pictures = pictures;
		this.sku = sku;
		this.rotation = rotation;
		if (commentId != null){
			this.commentVideoPath = ParamConfig.file_path + "/video/" + commentId + ".mp4";
		}
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getResourcesId() {
		return resourcesId;
	}
	public void setResourcesId(Integer resourcesId) {
		this.resourcesId = resourcesId;
	}
	public Integer getGroupId() {
		return groupId;
	}
	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public String getOss() {
		return oss;
	}
	public void setOss(String oss) {
		this.oss = oss;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public Integer getDuration() {
		return duration;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public String getContent() {
		return content;
	}

	public Integer getCommentId() {
		return commentId;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	public void setPictures(Integer pictures) {
		this.pictures = pictures;
	}

	public Integer getPictures() {
		return pictures;
	}

	public String getCommentVideoPath() {
		return commentVideoPath;
	}
	public Integer getRotation() {
		return rotation;
	}
	public Long getSku() {
        return sku;
    }
	public void setSku(Long sku) {
		this.sku = sku;
	}
	public void setRotation(Integer rotation) {
		this.rotation = rotation;
	}
	public void setCommentVideoPath(String commentVideoPath) {
		this.commentVideoPath = commentVideoPath;
	}
}
